#animation_tester

set (target_name animation_tester)

set(test_objects
  ${animation_directory}/Singleton.h
  )

set(test_sources
  Test_Singleton.h
  Test_Singleton.cpp
  )

###############################################################################
# contents related test made by google
set (gtest_sources
  ${gtest_directory}/src/gtest.cc
  ${gtest_directory}/src/gtest-death-test.cc
  ${gtest_directory}/src/gtest-filepath.cc
  ${gtest_directory}/src/gtest-internal-inl.h
  ${gtest_directory}/src/gtest-port.cc
  ${gtest_directory}/src/gtest-printers.cc
  ${gtest_directory}/src/gtest-test-part.cc
  ${gtest_directory}/src/gtest-typed-test.cc
  )

set (gmock_sources
  ${gmock_directory}/src/gmock.cc
  ${gmock_directory}/src/gmock-cardinalities.cc
  ${gmock_directory}/src/gmock-internal-utils.cc
  ${gmock_directory}/src/gmock-matchers.cc
  ${gmock_directory}/src/gmock-spec-builders.cc
  )

# source group. visual studio only
if (MSVC)
source_group (dep\\gtest FILES ${gtest_sources})
source_group (dep\\gmock FILES ${gmock_sources})
source_group (test\\test_object FILES ${test_objects})
source_group (test\\test_sources FILES ${test_sources})
endif ()
###############################################################################

set (SOURCES
  ${gtest_sources}
  ${gmock_sources}
  ${test_objects}
  ${test_sources}
  main.cpp
  main.h
  )

add_definitions (-D_UNICODE)

include_directories (
  ${gtest_directory}
  ${gtest_directory}/include
  ${gmock_directory}
  ${gmock_directory}/include
  ${animation_directory}
  )

add_executable (${target_name} ${SOURCES})

if (WIN32)
add_custom_command (TARGET ${target_name}
  POST_BUILD
  COMMAND call "\"$(TargetDir)$(TargetName)$(TargetExt)\"")
endif ()
 